package com.njtoyo.taxi.admin.service.local_service.merchant;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.rest.presenter.local_service.merchant.LifeMerchantAccountPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.merchant.LifeMerchantAccountAddWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.merchant.LifeMerchantAccountUpdateWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.merchant.LifeMerchantAccountWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;

public interface MerchantAccountService {

    /**
     * 商户账号列表
     *
     * @param adminUser
     * @param wrapper
     * @return
     */
    RestResult<Page<LifeMerchantAccountPresenter>> getPage(AdminUser adminUser, LifeMerchantAccountWrapper wrapper);

    /**
     * 商户账号商户账号添加
     *
     * @param wrapper
     * @return
     */
    RestResult add(LifeMerchantAccountAddWrapper wrapper);

    /**
     * 商家账号更改状态
     *
     * @param wrapper
     * @return
     */
    RestResult update(Long id, LifeMerchantAccountUpdateWrapper wrapper);

}
